package com.pattern.Structure.decorator;

public class Decorator extends Component {

	private Component component;

	public Decorator(Component component) {
		this.component = component;
	}

	public void operation() {
		if (component != null) {
			component.operation();
		}
	}

}
